package com.chak.voyage;

import com.chak.voyage.crawler.Crawler;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by delzh on 2016/9/4.
 */
public class App {

    public static void main(String [] args) throws IOException {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/platform-services-servlet.xml");
        Crawler crawler = applicationContext.getBean(Crawler.class);
        crawler.crawl();

    }

}
